package com.quxue.im.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 帖子点赞
 * </p>
 *
 * @author jinken
 * @since 2023-11-13
 */
@TableName("chat_topic_like")
public class ChatTopicLike implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 帖子id
     */
    private Long topicId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 是否点赞
     */
    private String hasLike;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTopicId() {
        return topicId;
    }

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getHasLike() {
        return hasLike;
    }

    public void setHasLike(String hasLike) {
        this.hasLike = hasLike;
    }

    @Override
    public String toString() {
        return "ChatTopicLike{" +
            "id = " + id +
            ", topicId = " + topicId +
            ", userId = " + userId +
            ", hasLike = " + hasLike +
        "}";
    }
}
